<?php

/**
 * Class IndexController
 */
class IndexController extends Controller{
     public function indexAction(){
         if(LoginHelper::getUserName() != '' || LoginHelper::getUserId() != 0){
                 $this -> redirect($this -> _createUrl('merchandise/index'));
         }else{
             $this -> redirect($this -> _createUrl('login/index'));
         }
        $this -> display('index');
     }
}
